How to Restore the Windows 7 MBR

TIP: You can use this method to update the bootsector code for Windows 7, Vista, XP, 2000 or switch between Bootmgr and NTLDR. Just check the Microsoft TechNet site for the correct command.

  1. Boot your computer to the Windows 7 DVD (or to a "Repair CD"). At this screen choose to install now.
  2. Select your language and click next.
  3. Click the button for "Use recovery tools".
  4. Then select "Command Prompt".
  5. When open, the command prompt will look like this:
  6.  The command we will use, bootsect.exe, is in a folder (named boot) on the DVD.
  7. We need to know what drive letter has been assigned the DVD drive to access the folder.

    Type: diskpart and press Enter

    Type: select disk 0 (zero) and press Enter

    Type: list volume and press Enter

    In this screen shot, the 7 DVD is letter: G

  8. Use your DVD drive letter and

    Type: exit and press Enter to close Diskpart

    Type: G: (use the letter of your DVD drive) and press Enter

    Type: cd boot and press Enter Type: dir and press Enter

  9. verify that bootcect.exe is there (if you really need to)

  10. To restore the "bootsector code":

    TYPE: bootsect /nt60 SYS /mbr and press Enter

  11. NOTE: If this method fails to restore the MBR, you can try the bootrec command as it is also a tool for repairing the MBR.

  12. When completed successfully,

    Type: exit and press Enter

  13. This will close the command prompt window.

  14. Now select Shut Down or Restart.
  15. Then you can reboot your computer into Windows.

 

TKB:1122